# -*- coding: utf-8 -*-
# @Author  : haomh
# @Time    : 2025/11/15 11:39
# @Function:
# try:
#     open('text.txt', 'r')
# except :
#     open('text.txt', 'w')
#

class ShotInputError(Exception):
    def __str__(self):
        return '您输入的长度不足'

def fun():
    sec = input('请输入密码：')
    if len(sec) < 3:
        raise ShotInputError()
    else:
        print('输入成功')

fun()


